package com.by.zhdoctor.service.dto;

import com.by.zhdoctor.domain.Topic;

import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * Created by Lawrence on 2017/6/22.
 */
public class TopicDTO implements Serializable {
    private Long id;
    private String creater;
    private String comunity;
    private Integer count;
    private Integer disscusscount;
    private String content;
    private String topicimage;
    private String title;
    private ZonedDateTime createat;
    private ZonedDateTime updateat;
    private String clicker;
    private String headimg;
    private String nickname;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getComunity() {
        return comunity;
    }

    public void setComunity(String comunity) {
        this.comunity = comunity;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getDisscusscount() {
        return disscusscount;
    }

    public void setDisscusscount(Integer disscusscount) {
        this.disscusscount = disscusscount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTopicimage() {
        return topicimage;
    }

    public void setTopicimage(String topicimage) {
        this.topicimage = topicimage;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public ZonedDateTime getCreateat() {
        return createat;
    }

    public void setCreateat(ZonedDateTime createat) {
        this.createat = createat;
    }

    public ZonedDateTime getUpdateat() {
        return updateat;
    }

    public void setUpdateat(ZonedDateTime updateat) {
        this.updateat = updateat;
    }

    public String getClicker() {
        return clicker;
    }

    public void setClicker(String clicker) {
        this.clicker = clicker;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public TopicDTO() {
    }
    public TopicDTO(Topic topic,String headimg,String nickname) {
        this(topic.getId(),topic.getCreater(),topic.getComunity(),topic.getCount(),topic.getDisscusscount(),topic.getContent(),topic.getTopicimage(),topic.getTitle(),
            topic.getCreateat(),topic.getUpdateat(),topic.getClicker(),headimg,nickname);
    }
    public TopicDTO(Long id, String creater, String comunity, Integer count, Integer disscusscount, String content, String topicimage, String title, ZonedDateTime createat, ZonedDateTime updateat, String clicker, String headimg,String nickname) {
        this.id = id;
        this.creater = creater;
        this.comunity = comunity;
        this.count = count;
        this.disscusscount = disscusscount;
        this.content = content;
        this.topicimage = topicimage;
        this.title = title;
        this.createat = createat;
        this.updateat = updateat;
        this.clicker = clicker;
        this.headimg = headimg;
        this.nickname =nickname;
    }
}
